using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

public class Javaobjects
{
	public static void Main(string[] args)
	{
		SuperHero hero = new SuperHero();

		hero.setName("SpamMan"); 
		hero.setPowerLevel(3); 

		hero.Defend("Laura Jones");
		SuperHero.Rest();  // Calling static method

		SuperHero hero2 = hero;   // Both refer to same object 
		hero2.setName("WormWoman"); 
		Console.WriteLine(hero.getName());  // Prints WormWoman 

		hero = null;   // Free the object

		if (hero == null)
		  hero = new SuperHero();

		object obj = new SuperHero(); 
		Console.WriteLine("object's type: " + obj.getClass().tostring()); 
		if (obj is SuperHero) 
		  Console.WriteLine("Is a SuperHero object.");
		  
		// PROPERTIES
		/*
		private int mSize;

		public int getSize() { return mSize; } 
		public void setSize(int value) {
		  if (value < 0) 
			mSize = 0; 
		  else 
			mSize = value; 
		}


		int s = shoe.getSize();
		shoe.setSize(s+1);
		*/
	}
}
